<%@ page import="java.util.Date" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page import="cn.entity.News2" %>
<%@ page import="cn.NewsDaoImpl.NewsDaoImpl2" %><%--
  Created by IntelliJ IDEA.
  User: 范军建
  Date: 2022/4/6
  Time: 12:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    String newsid= request.getParameter("newsid");
    if (newsid !=null||newsid!=""){
        int num = Integer.parseInt(newsid);
        NewsDaoImpl2 newsDao=new NewsDaoImpl2();
        News2 news2=newsDao.selectById(num);
        session.setAttribute("news",news2);
        request.getRequestDispatcher("ModifyNews.jsp").forward(request,response);

    }




%>

</body>
</html>
